#include <QtGlobal>

#include "mousetap.h"

#ifdef Q_OS_WIN32
#include "winmousetap.h"
#endif
#ifdef Q_OS_OSX
#include "cocoamousetap.h"
#endif
#ifdef Q_OS_LINUX

#include "xmousetap.h"

#endif

MouseTap *MouseTap::s_instance = Q_NULLPTR;

MouseTap *MouseTap::getInstance()
{
    if (s_instance == Q_NULLPTR) {
        s_instance = new XMouseTap();
    }
    return s_instance;
}
